package com.zyy.seckill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zyy.seckill.entity.Goods;
import com.zyy.seckill.vo.GoodsVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zyy
 * @since 2021-10-04
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    /**
     *  获取商品列表
     * @return
     */
    List<GoodsVo> findGoodsVo();

    /**
     * 获取商品详情
     * @param goodsId 根据商品ID
     * @return
     */
    GoodsVo findGoodsVoById(long goodsId);
}
